package com.zzld.modules.maintenance.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "zzld_maintenance_product")
public class Matnproduct {
    @Id
    private String productid;

    private String productname;

    @Column(name = "path_id")
    private String pathId;

    private BigDecimal yprice;

    private BigDecimal xprice;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "suppliers_id")
    private String suppliersId;

    @Column(name="brand_id")
    private String brandId;
    
    @Column(name="store_id")
    private String storeId;
    
    public String getStoreId(){
    	return storeId;
    }
    
    public void setStoreId(String storeId){
    	this.storeId=storeId;
    }
    
    @Transient
    private String brandname;
    
    public String getBrandname(){
    	return brandname;
    }
    
    public void setBrandname(String brandname){
    	this.brandname=brandname;
    }
    
    @Transient
    private String pathname;
    
    public String getPathname(){
    	return pathname;
    }
    
    public void setPathname(String pathname){
    	this.pathname=pathname;
    }
    
    private Integer state;

    /**
     * @return productid
     */
    public String getProductid() {
        return productid;
    }

    /**
     * @param productid
     */
    public void setProductid(String productid) {
        this.productid = productid;
    }

    /**
     * @return productname
     */
    public String getProductname() {
        return productname;
    }

    /**
     * @param productname
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     * @return path_id
     */
    public String getPathId() {
        return pathId;
    }

    /**
     * @param pathId
     */
    public void setPathId(String pathId) {
        this.pathId = pathId;
    }

    /**
     * @return yprice
     */
    public BigDecimal getYprice() {
        return yprice;
    }

    /**
     * @param yprice
     */
    public void setYprice(BigDecimal yprice) {
        this.yprice = yprice;
    }

    /**
     * @return xprice
     */
    public BigDecimal getXprice() {
        return xprice;
    }

    /**
     * @param xprice
     */
    public void setXprice(BigDecimal xprice) {
        this.xprice = xprice;
    }

    /**
     * @return create_time
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return suppliers_id
     */
    public String getSuppliersId() {
        return suppliersId;
    }

    /**
     * @param suppliersId
     */
    public void setSuppliersId(String suppliersId) {
        this.suppliersId = suppliersId;
    }

    /**
     * @return state
     */
    public Integer getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(Integer state) {
        this.state = state;
    }
    
    public String getBrandId(){
    	return brandId;
    }
    
    public void setBrandId(String brandId){
    	this.brandId=brandId;
    }
}